import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Lenovo
 * @Date: 2024/6/9 9:10
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(myArrayList.useSize,99);
      //  myArrayList.display();
      //  myArrayList.set(2,99);
        myArrayList.remove(1);
        myArrayList.display();
    }
}
